﻿using FluentValidation;

namespace Services.Activity.WebApi.Request;

public class GetActivitiesDetailRequest
{
    public List<long> ActivityIds { get; set; }
}
public class GetActivitiesDetailRequestValidator : AbstractValidator<GetActivitiesDetailRequest>
{
    public GetActivitiesDetailRequestValidator()
    {
        RuleFor(x => x.ActivityIds).Must(x => x.Count != 0).WithMessage("获取活动详情时活动索引集合不能为空");
    }
}
